﻿namespace Cloudio.Core.WebFormsParser
{
    using System;
    using System.Web.UI.Design;

    class CloudioWebFormsRootDesigner : WebFormsRootDesigner
    {
        private CloudioWebFormsReferenceManager _referenceManager;

        public override void AddClientScriptToDocument(ClientScriptItem scriptItem)
        {
            throw new NotImplementedException();
        }

        public override string AddControlToDocument(System.Web.UI.Control newControl, System.Web.UI.Control referenceControl, ControlLocation location)
        {
            throw new NotImplementedException();
        }

        public override string DocumentUrl
        {
            get { throw new NotImplementedException(); }
        }

        public override ClientScriptItemCollection GetClientScriptsInDocument()
        {
            throw new NotImplementedException();
        }

        protected override void GetControlViewAndTag(System.Web.UI.Control control, out IControlDesignerView view, out IControlDesignerTag tag)
        {
            throw new NotImplementedException();
        }

        public override bool IsDesignerViewLocked
        {
            get { throw new NotImplementedException(); }
        }

        public override bool IsLoading
        {
            get { throw new NotImplementedException(); }
        }

        public override WebFormsReferenceManager ReferenceManager
        {
            get
            {
                if (_referenceManager == null)
                    _referenceManager = new CloudioWebFormsReferenceManager();

                return _referenceManager;
            }
        }

        public override void RemoveClientScriptFromDocument(string clientScriptId)
        {
            throw new NotImplementedException();
        }

        public override void RemoveControlFromDocument(System.Web.UI.Control control)
        {
            throw new NotImplementedException();
        }
    }
}